public class BitOperator {
	public static void main(String[] args) {
		int a = 1>>2;//向右移动2位 0
		int b = -1 >> 2;//算术右移 //-1
		int c = 1 << 2;//算术左移 //4
		int d = -1 << 2;//-4
		int e = 3 >>> 2;//无符号右移 //0

		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
		System.out.println(d);
		System.out.println(e);

		~2;//
		2 & 3;//2
		2 | 3;//3
		~-5;
		13 & 7;
		5 | 4;
		-3 ^ 3;//

	}
}